Skip to content
  • 0 Votes
    2 Posts
    818 Views
    mehwishM
    Duplicate topic please check discussion! https://cyberian.pk/topic/931/cs201-assignment-3-solution-and-discussion/4
  • 0 Votes
    6 Posts
    2k Views
    zareenZ
    https://www.youtube.com/watch?v=j4mJTG4sWiU
  • 0 Votes
    4 Posts
    2k Views
    zareenZ
    https://trinket.io/java/276087f7df?showInstructions=true
  • 0 Votes
    3 Posts
    2k Views
    zareenZ
    https://www.youtube.com/watch?v=6atYeeoXH_M&t=16s
  • 0 Votes
    3 Posts
    2k Views
    zareenZ
    @zareen said in PAK301 Assignment 1 Solution and Discussion: • What is the impact of Allahabad Address (1930) presented by Allama Iqbal on the Muslim politics? Justify your answer with at least five points. 5 points • Dr Allama Muhammad Iqbal ranks amongst the Muslim intellectuals who left a deep impact on history. He inspired Muslims of the Sub-Continent and beyond. He infused a moving spirit and identity in the Indian Muslims. He presented a framework of their political future and talked how that would help to achieve the goal of Ummah. He presented a vision and dream in his Allahabad Address. • Allama Iqbal was a great poet and philosopher who gave the idea of Pakistan; Muslims were ignorant it was Allama Iqbal who aroused the Muslims through his poetry & also played an effective role in All India Muslim League. Allama Iqbal presented his idea in his addresses at Allahabad 1930. His address left an ever lasting impact on the politics of the subcontinent. After this address there was a new hope and enthusiasm for Muslims. It cleared all the political confusions from the minds of the Muslims and made them release their destination. • He addressed I can see: “Punjab, N.W.F.P, Sindh and Baluchistan be amalgamated into a state, self-government within the British empire or without it. The formation of such a consolidated North Western Muslim state appears to be the final destiny of the Muslims, at least of North West India. To India, it will offer peace and security due to internal balance of power”. • He asserted that there is only one way to eliminate the riots and bring piece in the subcontinent is to create a separate state for Muslims. He also developed a national and religious spirit in the Muslims by his address to the Muslims of Subcontinent. Muslims came to know that how they can individually contribute with Muslim League for a separate state. • Through his address Allama Iqbal also protected Muslims religious identity. Iqbal’s address is a forceful and logical presentation of the Muslim case in India. Iqbal presented a review of the political and social situation of India and solution of the ills befalling India.
  • 0 Votes
    1 Posts
    265 Views
    No one has replied
  • 0 Votes
    10 Posts
    2k Views
    zareenZ
    A good writer never needs to revise and polish his/her contents. ENG001 True False
  • 0 Votes
    1 Posts
    327 Views
    No one has replied
  • 0 Votes
    2 Posts
    636 Views
    zareenZ
    Assignment Solution: You have studied different characteristics and skills of a community journalist in lesson 02. Make a comparison of community journalist with that of a main stream media (TV & Newspaper) Journalist? What traits of a community journalist bring him closer to his readers and viewers? Students must discuss the following characteristics of community journalism that are different from main stream media persons. Two most important qualities of community journalism are common sense and understanding people The effective community journalist holds his or her position in the public interest and by the public’s trust The community journalist cannot be the lapdog of special interests. The community journalist must be an active, not passive, journalist. Public listening is the first step in a journalist’s research of an issue The journalists are sympathetic to the community’s issues because the media see themselves as part of that community. A community journalist must keep his preconceived views aside while covering issues. What is meant by preconceived views? Explain with the help of an example We all grow up with our own sets of experiences, values and ideas about how the world works or should work. Although we do not intentionally get locked into our own ways of thinking and perceiving, the filters we bring to any situation – including planning stories, choosing sources, interviewing and putting together the final package – may prevent us from seeing the world as others do. This may lead us to cover news in a way that others find biased. Eg. If a journalist thinks that illiterate people cannot do anything good to society then he might ignore the suggestions coming from an illiterate person of community.
  • 0 Votes
    5 Posts
    878 Views
    zareenZ
    @THE-TEACHER said in EDU601 Assignment 2 Solution and Discussion: @zareen yeh sai hy assignment…??? idea solution!
  • 0 Votes
    1 Posts
    409 Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    7 Posts
    3k Views
    zareenZ
    Ideas Solution 2: #include<iostream> #include<fstream> #include<stdio.h> using namespace std; class Employee{ private: int code; char name[20]; float salary; public: void read(); void display(); int getEmpCode() { return code;} int getSalary() { return salary;} void updateSalary(float s) { salary=s;} }; void Employee::read(){ cout<<"Enter employee code: "; cin>>code; cout<<"Enter name: "; cin.ignore(1); cin.getline(name,20); cout<<"Enter salary: "; cin>>salary; } void Employee::display() { cout<<code<<" "<<name<<"\t"<<salary<<endl; } fstream file; void deleteExistingFile(){ remove("EMPLOYEE.DAT"); } void appendToFille(){ Employee x; x.read(); file.open("EMPLOYEE.DAT",ios::binary|ios::app); if(!file){ cout<<"ERROR IN CREATING FILE\n"; return; } file.write((char*)&x,sizeof(x)); file.close(); cout<<"Record added sucessfully.\n"; } void displayAll(){ Employee x; file.open("EMPLOYEE.DAT",ios::binary|ios::in); if(!file){ cout<<"ERROR IN OPENING FILE \n"; return; } while(file){ if(file.read((char*)&x,sizeof(x))) if(x.getSalary()>=10000 && x.getSalary()<=20000) x.display(); } file.close(); } void searchForRecord(){ Employee x; int c; int isFound=0; cout<<"Enter employee code: "; cin>>c; file.open("EMPLOYEE.DAT",ios::binary|ios::in); if(!file){ cout<<"ERROR IN OPENING FILE \n"; return; } while(file){ if(file.read((char*)&x,sizeof(x))){ if(x.getEmpCode()==c){ cout<<"RECORD FOUND\n"; x.display(); isFound=1; break; } } } if(isFound==0){ cout<<"Record not found!!!\n"; } file.close(); } void increaseSalary(){ Employee x; int c; int isFound=0; float sal; cout<<"enter employee code \n"; cin>>c; file.open("EMPLOYEE.DAT",ios::binary|ios::in); if(!file){ cout<<"ERROR IN OPENING FILE \n"; return; } while(file){ if(file.read((char*)&x,sizeof(x))){ if(x.getEmpCode()==c){ cout<<"Salary hike? "; cin>>sal; x.updateSalary(x.getSalary()+sal); isFound=1; break; } } } if(isFound==0){ cout<<"Record not found!!!\n"; } file.close(); cout<<"Salary updated successfully."<<endl; } void insertRecord(){ Employee x; Employee newEmp; newEmp.read(); fstream fin; file.open("EMPLOYEE.DAT",ios::binary|ios::in); fin.open("TEMP.DAT",ios::binary|ios::out); if(!file){ cout<<"Error in opening EMPLOYEE.DAT file!!!\n"; return; } if(!fin){ cout<<"Error in opening TEMP.DAT file!!!\n"; return; } while(file){ if(file.read((char*)&x,sizeof(x))){ if(x.getEmpCode()>newEmp.getEmpCode()){ fin.write((char*)&newEmp, sizeof(newEmp)); } fin.write((char*)&x, sizeof(x)); } } fin.close(); file.close(); rename("TEMP.DAT","EMPLOYEE.DAT"); remove("TEMP.DAT"); cout<<"Record inserted successfully."<<endl; } int main() { char ch; deleteExistingFile(); do{ int n; cout<<"ENTER CHOICE\n"<<"1.ADD AN EMPLOYEE\n"<<"2.DISPLAY\n"<<"3.SEARCH\n"<<"4.INCREASE SALARY\n"<<"5.INSERT RECORD\n"; cout<<"Make a choice: "; cin>>n; switch(n){ case 1: appendToFille(); break; case 2 : displayAll(); break; case 3: searchForRecord(); break; case 4: increaseSalary(); break; case 5: insertRecord(); break; default : cout<<"Invalid Choice\n"; } cout<<"Do you want to continue ? : "; cin>>ch; }while(ch=='Y'||ch=='y'); return 0; }
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    2 Posts
    373 Views
    zareenZ
    BIF401_Assignmnet_02_Solution_Fall_2019.pdf
  • 0 Votes
    1 Posts
    332 Views
    No one has replied
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

0

Online

3.0k

Users

2.8k

Topics

8.5k

Posts
Popular Tags
Online User
| |